find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS} ${PROJECT_SOURCE_DIR}/include) #头文件搜索目录
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib) # 指定动态库输出目录
#set(IMG_SOURCE img_processer.cpp)
aux_source_directory(${PROJECT_SOURCE_DIR}/src/image img_dirs) # 指定源码目录
message("image src= ${img_dirs}")
add_library(image SHARED  ${img_dirs})
target_link_libraries(image ${OpenCV_LIBS})